import request from '@/config/axios'

export interface TagItem {
  name: string
  url?: string
  image?: string
}

// 标签云 API
export const TagCloudApi = {
  // 获取用户姓名标签云数据
  getUserNameTags: async () => {
    return await request.get<TagItem[]>({ url: '/javainfo/tag-cloud/user-names' })
  },

  // 获取宠物姓名标签云数据
  getPetNameTags: async () => {
    return await request.get<TagItem[]>({ url: '/javainfo/tag-cloud/pet-names' })
  },

  // 获取宠物照片标签云数据
  getPetPhotoTags: async () => {
    return await request.get<TagItem[]>({ url: '/javainfo/tag-cloud/pet-photos' })
  },

  // 模拟数据 - 用户姓名
  getMockUserNameTags: () => {
    return [
      { name: '张三', url: '#' },
      { name: '李四', url: '#' },
      { name: '王五', url: '#' },
      { name: '赵六', url: '#' },
      { name: '钱七', url: '#' },
      { name: '孙八', url: '#' },
      { name: '周九', url: '#' },
      { name: '吴十', url: '#' },
      { name: '郑十一', url: '#' },
      { name: '王十二', url: '#' },
      { name: '冯十三', url: '#' },
      { name: '陈十四', url: '#' },
      { name: '褚十五', url: '#' },
      { name: '卫十六', url: '#' },
      { name: '蒋十七', url: '#' },
      { name: '沈十八', url: '#' },
      { name: '韩十九', url: '#' },
      { name: '杨二十', url: '#' },
      { name: '朱二一', url: '#' },
      { name: '秦二二', url: '#' },
      { name: '尤二三', url: '#' },
      { name: '许二四', url: '#' },
      { name: '何二五', url: '#' },
      { name: '吕二六', url: '#' },
      { name: '施二七', url: '#' },
      { name: '张二八', url: '#' },
      { name: '孔二九', url: '#' },
      { name: '曹三十', url: '#' },
      { name: '严三一', url: '#' },
      { name: '华三二', url: '#' }
    ]
  },

  // 模拟数据 - 宠物姓名
  getMockPetNameTags: () => {
    return [
      { name: '小白', url: '#' },
      { name: '小黑', url: '#' },
      { name: '旺财', url: '#' },
      { name: '来福', url: '#' },
      { name: '球球', url: '#' },
      { name: '毛毛', url: '#' },
      { name: '花花', url: '#' },
      { name: '点点', url: '#' },
      { name: '贝贝', url: '#' },
      { name: '豆豆', url: '#' },
      { name: '可乐', url: '#' },
      { name: '奶茶', url: '#' },
      { name: '雪球', url: '#' },
      { name: '虎子', url: '#' },
      { name: '大黄', url: '#' },
      { name: '小灰', url: '#' },
      { name: '肥肥', url: '#' },
      { name: '胖胖', url: '#' },
      { name: '乖乖', url: '#' },
      { name: '咪咪', url: '#' },
      { name: '汪汪', url: '#' },
      { name: '喵喵', url: '#' },
      { name: '哈哈', url: '#' },
      { name: '笨笨', url: '#' },
      { name: '聪聪', url: '#' },
      { name: '乐乐', url: '#' },
      { name: '欢欢', url: '#' },
      { name: '跳跳', url: '#' },
      { name: '蹦蹦', url: '#' },
      { name: '闹闹', url: '#' }
    ]
  },

  // 模拟数据 - 宠物照片
  getMockPetPhotoTags: () => {
    return [
      { image: 'https://img2.baidu.com/it/u=1814268193,3619863984&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500', url: '#' },
      { image: 'https://img2.baidu.com/it/u=2556538593,1976306877&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500', url: '#' },
      { image: 'https://img1.baidu.com/it/u=3709586903,2347679337&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500', url: '#' },
      { image: 'https://img0.baidu.com/it/u=2639242239,1233461344&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500', url: '#' },
      { image: 'https://img1.baidu.com/it/u=3222632608,2599467574&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500', url: '#' },
      { image: 'https://img2.baidu.com/it/u=3639653406,1696928270&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500', url: '#' },
      { image: 'https://img0.baidu.com/it/u=3106796286,2160354719&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500', url: '#' },
      { image: 'https://img1.baidu.com/it/u=1979270827,2253733906&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500', url: '#' },
      { image: 'https://img1.baidu.com/it/u=1205033648,1284611338&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500', url: '#' },
      { image: 'https://img2.baidu.com/it/u=3192396677,3270962581&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500', url: '#' },
      { image: 'https://img2.baidu.com/it/u=2048195462,703560066&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500', url: '#' },
      { image: 'https://img0.baidu.com/it/u=3284869374,358960052&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500', url: '#' },
      { image: 'https://img0.baidu.com/it/u=3419606519,3840904391&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500', url: '#' },
      { image: 'https://img0.baidu.com/it/u=3419606519,3840904391&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500', url: '#' },
      { image: 'https://img1.baidu.com/it/u=1979270827,2253733906&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500', url: '#' },
      { image: 'https://img1.baidu.com/it/u=1205033648,1284611338&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500', url: '#' },
      { image: 'https://img2.baidu.com/it/u=3192396677,3270962581&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500', url: '#' },
      { image: 'https://img2.baidu.com/it/u=2048195462,703560066&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500', url: '#' },
      { image: 'https://img0.baidu.com/it/u=3284869374,358960052&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500', url: '#' },
      { image: 'https://img0.baidu.com/it/u=3419606519,3840904391&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500', url: '#' }
    ]
  }
}

